<?xml version=1.0 encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform
    xmlns:fo=http://www.w3.org/1999/XSL/Format
    version=1.0>
<xsl:output encoding="ISO-8859-1"/>

    <xsl:template match=PLANETES>
        <fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format>

            <fo:layout-master-set>
                 <fo:simple-page-master master-name=page
                     page-height=400mm page-width=300mm
                     margin-top=10mm margin-bottom=10mm
                     margin-left=20mm margin-right=20mm>

                     <fo:region-body
                       margin-top=0mm margin-bottom=10mm
                       margin-left=0mm margin-right=0mm/>

                     <fo:region-after extent=10mm/>
                 </fo:simple-page-master>
             </fo:layout-master-set>

             <fo:page-sequence master-name=page>

                 <fo:flow flow-name=xsl-region-body>
                     <fo:block font-weight=bold font-size=36pt 
                         line-height=48pt font-family=Times
                         color=blue>
                         Le tableau des plantes 
                     </fo:block>
                     <xsl:apply-templates/>
                 </fo:flow>
             </fo:page-sequence>

        </fo:root>
    </xsl:template>

    <xsl:template match=PLANETE/NOM>
        <fo:block font-weight=bold font-size=28pt 
            line-height=48pt font-family=Times
            font-style=italic>
            Planet: 
            <xsl:apply-templates/>
        </fo:block>
    </xsl:template>

    <xsl:template match=PLANETE/MASSE>
        <fo:block font-size=24pt line-height=32pt 
            font-family=Times>
            <fo:inline text-decoration=underline>
                Masse 
            </fo:inline>:
            <xsl:apply-templates/>
            [Terre = 1]
        </fo:block>
    </xsl:template>

    <xsl:template match=PLANETE/JOUR>
        <fo:block font-size=24pt line-height=32pt 
            font-family=Times>
            <fo:inline text-decoration=underline>
                Jour 
            </fo:inline>:
            <xsl:apply-templates/>
            [Terre = 1]
        </fo:block>
    </xsl:template>

    <xsl:template match=PLANETE/RAYON>
        <fo:block font-size=24pt line-height=32pt 
            font-family=Times>
            <fo:inline text-decoration=underline>
                Rayon 
            </fo:inline>:
            <xsl:apply-templates/>
            miles
        </fo:block>
    </xsl:template>

    <xsl:template match=PLANETE/DENSITE>
        <fo:block font-size=24pt line-height=32pt 
            font-family=Times>
            <fo:inline text-decoration=underline>
                Densit
            </fo:inline>:
            <xsl:apply-templates/>
            [Terre = 1]
        </fo:block>
    </xsl:template>

    <xsl:template match=PLANETE/DISTANCE>
        <fo:block font-size=24pt line-height=32pt 
            font-family=Times>
            <fo:inline text-decoration=underline>
                Distance 
            </fo:inline>:
            <xsl:apply-templates/>
            millions de miles
        </fo:block>
    </xsl:template>

</xsl:stylesheet>
